@layout("/common/_container.html",{js:["/assets/coupon/coupon_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="couponForm" lay-filter="couponForm" class="layui-form model-form"
                  style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">优惠券名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="couponName" name="couponName" placeholder="请输入优惠券名称" type="text" class="layui-input"
                        />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">使用平台<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="usableRange" name="usableRange">
                            <option value="1">小程序专用</option>
                            <option value="2">公众号专用</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">优惠方式<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <select id="discountType" lay-filter="discountType" name="discountType">
                            <option value="1">立减</option>
                            <option value="2">折扣</option>
                        </select>
                    </div>
                </div>
                <!--<div class="layui-form-item">
                    <label class="layui-form-label">发放总量<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="sendNumber" name="sendNumber" placeholder="请输入发放总量" type="text" class="layui-input"
                        />
                    </div>
                </div>-->
                <div class="layui-form-item">
                    <label class="layui-form-label">满足金额<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="satistyMoney" name="satistyMoney" placeholder="请输入满足金额" type="text"
                               class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item" id="discountM">
                    <label class="layui-form-label">优惠金额<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="discountMoney" name="discountMoney" placeholder="请输入优惠金额" type="text"
                               class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item" id="discountZ" style="display: none">
                    <label class="layui-form-label">优惠折扣<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="discount" name="discount" placeholder="参照示例 eg: 8折-->0.8" type="text"
                               class="layui-input"
                        />
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">日期范围选择<span style="color: red;">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" id="laydate-startTime" name="startTime"
                               placeholder="开始时间"/>
                    </div>
                    <div class="layui-input-inline">
                        <input type="text" class="layui-input" id="laydate-endTime" name="endTime"
                               placeholder="结束时间"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">优惠券介绍<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="couponDesc" name="couponDesc" placeholder="请输入优惠券介绍" type="text" class="layui-input"
                        />
                    </div>
                </div>
                <!-- <div class="layui-form-item">
                     <label class="layui-form-label">创建时间<span style="color: red;">*</span></label>
                     <div class="layui-input-block">
                         <input id="createTime" name="createTime" placeholder="请输入创建时间" type="text" class="layui-input"
                                lay-verify="required" required/>
                     </div>
                 </div>-->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}